//封装axios的请求方式
import {axios} from './http';

/**
 * 
 * @param {*} url 请求的url地址
 * @param {*} params 请求时携带的参数
 */
export function get(url,params){
    return axios({
        url,
        params,
        method:'get',
    })
}
export function post(url,params){
    return axios({
        url,
        data:params,
        method:'post'
    })
}
export function put(url,params){
    return axios({
        url,
        data:params,
        method:'put'
    })
}
export function deletes(url,params){
    return axios({
        url,
        params,
        method:'delete',
    })
}